define(function(require) {
//	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");

	var Model = function() {
		this.callParent();
	};

	Model.prototype.modelLoad = function(event) {
		this.getElementByXid("input2").focus();
	};

	Model.prototype.okBtnClick = function(event) {
		var a = {};
		a.text = this.comp("input2").val();
//		alert(a.text);
		if(a.text.length === undefined || a.text.length === null){
			this.close();
		}
		if (a.text.length === 16) {
			this.getParent().AddCodeToShaoMiaoData(a);
		}else{
			justep.Util.hint("您输入的条码不是16位数字。");
		}
		this.comp("input2").clear();
		this.close();
	};

	Model.prototype.modelParamsReceive = function(event){

	};

	return Model;
});